package com.service.user.config;


import com.client.model.vo.common.ResultCodeEnum;
import lombok.Data;

//自定义异常
@Data
public class ZhentaoException extends RuntimeException {

    private  int code;
    private String message;


    public ZhentaoException(ResultCodeEnum resultCodeEnum) {
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();

    }


}
